Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.core.LifecycleCoreExtensions--lifecycle

This contribution is part of XML component org.nuxeo.ecm.core.LifecycleCoreExtensions inside nuxeo-core-5.8.jar

Documentation

Nuxeo core default life cycle definition.

Extension Point

Extension point lifecycle of component LifeCycleService.

Contributed Items

  • <lifecycle defaultInitial="project" name="default">
          <transitions>
            <transition destinationState="approved" name="approve">
              <description>Approve the content</description>
            </transition>
            <transition destinationState="obsolete" name="obsolete">
              <description>Content becomes obsolete</description>
            </transition>
            <transition destinationState="deleted" name="delete">
              <description>Move document to trash (temporary delete)</description>
            </transition>
            <transition destinationState="project" name="undelete">
              <description>Recover the document from trash</description>
            </transition>
            <transition destinationState="project" name="backToProject">
              <description>Recover the document from trash</description>
            </transition>
          </transitions>
          <states>
            <state description="Default state" initial="true" name="project">
              <transitions>
                <transition>approve</transition>
                <transition>obsolete</transition>
                <transition>delete</transition>
              </transitions>
            </state>
            <state description="Content has been validated" name="approved">
              <transitions>
                <transition>delete</transition>
                <transition>backToProject</transition>
              </transitions>
            </state>
            <state description="Content is obsolete" name="obsolete">
              <transitions>
                <transition>delete</transition>
                <transition>backToProject</transition>
              </transitions>
            </state>
            <state description="Document is deleted" name="deleted">
              <transitions>
                <transition>undelete</transition>
              </transitions>
            </state>
          </states>
        </lifecycle>

    Recover the document from trash

XML Source

<extension point="lifecycle" target="org.nuxeo.ecm.core.lifecycle.LifeCycleService">

    <documentation>Nuxeo core default life cycle definition.</documentation>

    <lifecycle defaultInitial="project" name="default">
      <transitions>
        <transition destinationState="approved" name="approve">
          <description>Approve the content</description>
        </transition>
        <transition destinationState="obsolete" name="obsolete">
          <description>Content becomes obsolete</description>
        </transition>
        <transition destinationState="deleted" name="delete">
          <description>Move document to trash (temporary delete)</description>
        </transition>
        <transition destinationState="project" name="undelete">
          <description>Recover the document from trash</description>
        </transition>
        <transition destinationState="project" name="backToProject">
          <description>Recover the document from trash</description>
        </transition>
      </transitions>
      <states>
        <state description="Default state" initial="true" name="project">
          <transitions>
            <transition>approve</transition>
            <transition>obsolete</transition>
            <transition>delete</transition>
          </transitions>
        </state>
        <state description="Content has been validated" name="approved">
          <transitions>
            <transition>delete</transition>
            <transition>backToProject</transition>
          </transitions>
        </state>
        <state description="Content is obsolete" name="obsolete">
          <transitions>
            <transition>delete</transition>
            <transition>backToProject</transition>
          </transitions>
        </state>
        <state description="Document is deleted" name="deleted">
          <transitions>
            <transition>undelete</transition>
          </transitions>
        </state>
      </states>
    </lifecycle>
  </extension>